//
//  XImageCache.h
//  WeiboSpace
//
//  Created by nan4 li on 12-5-15.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum
{
    HEAD = 0,
    OTHER
    
}
enumImageType;

@interface XImageCache : NSObject
{
    NSMutableDictionary *cacheDic;
}
+(XImageCache*)shareXImageCache;

-(NSString*)urlToFileName:(NSString*)url;
-(NSData*)dataForUrl:(NSString*)url;
-(void)setData:(NSString*)url image:(NSData*)imageData;
-(void)releaseCacheDic;
@end
